package com.smartpro.mis.modular.business.service.impl;

import com.smartpro.mis.modular.system.model.Message;
import com.smartpro.mis.modular.system.dao.MessageMapper;
import com.smartpro.mis.modular.business.service.IMessageService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 消息表 服务实现类
 * </p>
 *
 * @author mengiy123
 * @since 2019-05-07
 */
@Service
public class MessageServiceImpl extends ServiceImpl<MessageMapper, Message> implements IMessageService {


    @Override
    public List<Map<String, Object>> getMessageList(String beginTime, String endTime, Integer start, Integer num) {
        return this.baseMapper.getMessageList(beginTime,endTime,start,num);
    }

    @Override
    public List<Map<String, Object>> getMyMessages(int receiverID,String beginTime, String endTime, Integer start, Integer num) {
        return this.baseMapper.getMessageList(beginTime,endTime,start,num);
    }

    @Override
    public List<Map<String, Object>> selectMessageByType(int messageType,String beginTime, String endTime, Integer start, Integer num) {
        return this.baseMapper.selectMessageByType(messageType,beginTime,endTime,start,num);
    }


}
